package com.sharer.last.model.dto.persondetail;

import com.sharer.last.base.model.BaseDTO;
import com.sharer.last.interfaces.ValidateGroup;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 文件注释地方
 *
 * @ClassName PersonalDetailUpdateDTO
 * @Author WangJin
 * @Date 2023/05/20/13:57
 * @Description
 * @Version 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
public class PersonalDetailUpdateDTO extends BaseDTO {
    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = ValidateGroup.UpdateGroup.class)
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 正文内容markdown
     */
    private String content;

    /**
     * 网易云歌曲id
     */
    private String musicId;

    /**
     * 评论开启开关 1：开启
     */
    private Integer commentEnabled;
}
